﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WomanMotion.WebApi.Model.Dtos.Users
{
    /// <summary>
    /// 前端用户修改用户dto
    /// </summary>
    public class LeadingUpdateUserDto
    {
        /// <summary>
        /// 手机号码
        /// </summary>
        [Required(ErrorMessage = "手机号不能为空")]
        [RegularExpression(@"^1[3458][0-9]{9}$", ErrorMessage = "手机号格式不正确")]
        public string? Phone { get; set; } //[Range(, , ErrorMessage = "年纪必须在0-99之间")]

        /// <summary>
        /// 邮箱
        /// </summary>
        [Required(ErrorMessage = "邮箱不能为空")]
        [EmailAddress(ErrorMessage = "输入正确的邮箱格式")]
        public string? Email { get; set; }
    }
}